package com.ai.tikai.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;

public class MessageConsumer {
    @RabbitListener(queues = "my-queue")
    public void receiveMessage(String message) {
        System.out.println("接收到消息: " + message);
        // 在这里处理你的业务逻辑...
    }
}
